import request from '@/utils/request'

// 查询订单收费统计列表
export function listDingdan(query) {
  return request({
    url: '/chy/dingdan/list',
    method: 'get',
    params: query
  })
}

// 查询订单收费统计详细
export function getDingdan(id) {
  return request({
    url: '/chy/dingdan/' + id,
    method: 'get'
  })
}

// 新增订单收费统计
export function addDingdan(data) {
  return request({
    url: '/chy/dingdan',
    method: 'post',
    data: data
  })
}

// 修改订单收费统计
export function updateDingdan(data) {
  return request({
    url: '/chy/dingdan',
    method: 'put',
    data: data
  })
}

// 删除订单收费统计
export function delDingdan(id) {
  return request({
    url: '/chy/dingdan/' + id,
    method: 'delete'
  })
}

// 查询总费用
export function getSumMoney() {
  return request({
    url: '/chy/dingdan/totalAmount',
    method: 'get',
    params: {}  
  })
}
